home *** CD-ROM | disk | FTP | other *** search
/ Giga Games 1 / Giga Games.iso / net / go / prog / amigaigc.lha / amigaigc / Install.Me < prev    next >
Encoding:
Text File  |  1993-04-22  |  3.0 KB  |  106 lines

  1. ;
  2. ;-----------------------------------------------------------------------;
  3. ;                                                                       ;
  4. ; Installer script for AmigaIGC                                         ;
  5. ;                                                                       ;
  6. ; To install AmigaIGC type "Installer Install.Me AmigaIGC" in the CLI   ;
  7. ; or double-click on the Install.Me icon.                               ;
  8. ;                                                                       ;
  9. ;-----------------------------------------------------------------------;
  10. ;
  11. ; Check if OS version is 2.0+
  12. ;
  13. (set os-2.0 (>= (/ (getversion) 65536) 36))
  14. (debug "OS version is" (if os-2.0 "2.0+" "1.3"))
  15. ;
  16. ; Get the destination directory
  17. ;
  18. (set @default-dest (askdir
  19.                     (prompt "Where do you want to install AmigaIGC?")
  20.                     (help @askdir-help)
  21.                     (default "SYS:AmigaIGC")
  22.                     (newpath)
  23.                    )
  24. )
  25. ;
  26. ; Install AmigaIGC
  27. ;
  28. (copyfiles
  29.     (prompt "Installing AmigaIGC...")
  30.     (help @copyfiles-help)
  31.     (source "AmigaIGC")
  32.     (dest @default-dest)
  33.     (confirm)
  34. )
  35. ;
  36. ; Copy AmigaIGC.cfg to S:.
  37. ;
  38. ; Because the user may not want to overwrite his .cfg file with the
  39. ; default one, this must be confirmed.
  40. ;
  41. (if (exists "S:AmigaIGC.cfg")
  42.     (askbool
  43.         (prompt "You already have the file S:AmigaIGC.cfg installed. "
  44.                 "You should edit it and add any new variables.")
  45.         (help @askbool-help)
  46.         (choices "Proceed" "Proceed")
  47.     )
  48.     (copyfiles
  49.         (prompt "Copying AmigaIGC.cfg to S:...")
  50.         (help @copyfiles-help)
  51.         (source "AmigaIGC.cfg")
  52.         (dest "S:")
  53.     )
  54. )
  55. ;
  56. ; Install the appropriate reqtools.library
  57. ;
  58. (copylib
  59.     (prompt "Installing reqtools.library...")
  60.     (help @copylib-help)
  61.     (source (if os-2.0 "libs20/reqtools.library" "libs13/reqtools.library"))
  62.     (dest "LIBS:")
  63.     (confirm)
  64. )
  65. ;
  66. ; Install upd
  67. ;
  68. (if (exists "LIBS:rexxsyslib.library")
  69.     (
  70.         (if (not (exists "SYS:System/upd"))
  71.             (copyfiles
  72.                 (prompt "Installing upd...")
  73.                 (help @copyfiles-help)
  74.                 (source "upd/upd")
  75.                 (dest "SYS:System")
  76.                 (confirm)
  77.             )
  78.         )
  79.         (if (not (exists "SYS:System/Sounds/AmigaIGC"))
  80.             (copyfiles
  81.                 (prompt "Installing sound files...")
  82.                 (help @copyfiles-help)
  83.                 (source "upd/sounds")
  84.                 (dest "SYS:System/Sounds")
  85.                 (all)
  86.                 (confirm)
  87.             )
  88.         )
  89.         (startup @app-name
  90.             (prompt "Editing S:user-startup and possibly S:startup-sequence to start upd when the system is booted...")
  91.             (help @startup-help)
  92.             (command "run SYS:System/upd")
  93.         )
  94.     )
  95. )
  96. ;
  97. ; Install amigaguide.library
  98. ;
  99. (copylib
  100.     (prompt "Installing amigaguide.library...")
  101.     (help @copylib-help)
  102.     (source (if os-2.0 "libs20/amigaguide.library" "libs13/amigaguide.library"))
  103.     (dest "LIBS:")
  104.     (confirm)
  105. )
  106.